package com.xjoyt.pay.master.repository;

import java.util.List;

import org.springframework.data.jpa.repository.Query;

import com.xjoyt.pay.master.po.MerchantChannelCashRate;
import com.xjoyt.pay.repository.Repository;

public interface MerchantChannelCashRateRepository extends Repository<MerchantChannelCashRate>{
	@Query(" select a from MerchantChannelCashRate a where a.merchantChannel.id in ?1 ")
	List<MerchantChannelCashRate> findAllByMerchantChannelIdIn(List<String> ids);
	
	@Query(" select a from MerchantChannelCashRate a where a.merchantChannel.id = ?1 ")
	MerchantChannelCashRate findOneByMerchantChannelId(String id);
}
